package com.dingreading.cloud.soms.service;

import com.alibaba.fastjson.JSONObject;
import com.dingreading.cloud.common.dto.CorpTeacherDto;
import com.dingreading.cloud.soms.entity.Staff;
import com.mybatisflex.core.service.IService;

import java.util.List;
import java.util.Set;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface StaffService extends IService<Staff> {

    // 获取公司导读，按门店uid、员工uid置顶，员工uid去重
    List<CorpTeacherDto> getCorpTeachers(String storeUid, String keyword, String staffUid, Integer enabled);

    Staff getByUid(String uid);

    // 获取员工去除市场人员
    List<JSONObject> listByStoreStaff(String storeUid, Integer enabled, String keyword, Integer marketer);

    Staff getByUsername(String username);

    // 获取市场人员
    List<Staff> listByCorpMarketer(String corpUid, Integer enabled, String keyword);

    List<Staff> listByCorpMarketerV2(String staffUid, Integer enabled, String keyword);

    Staff getByStaffUid(String corpUid, String staffUid);
    Staff getByStoreUidAndName(String storeUid, String fullName);

    List<Staff> listByStoreUidAndMstUidIn(String storeUid, Set<String> mstUidList);

    Staff getLastUsername(String corpUid);
}
